package com.ssyc.gsk_teacher.adapter;

import android.content.Context;
import android.widget.TextView;

import com.ssyc.common.adapter.CommonAdapter;
import com.ssyc.common.adapter.ViewHolder;
import com.ssyc.gsk_teacher.R;
import com.ssyc.gsk_teacher.bean.ClassInfo;

import java.util.List;


/**
 * 教师端--展示所有班级的列表适配器
 * Created by Kevin on 2018/6/25
 */

public class TeacherGvClassAdapter extends CommonAdapter<ClassInfo.ListBean> {

    public TeacherGvClassAdapter(Context context, List<ClassInfo.ListBean> datas, int layoutId) {
        super(context, datas, layoutId);
    }

    @Override
    public void convert(ViewHolder holder, ClassInfo.ListBean classInfo) {
        //课程名称
        TextView tvName = holder.getView(R.id.tv_class_name);
        tvName.setText(classInfo.getName()+"");
    }
}
